from pynput import keyboard
from playsound import playsound

count = 0

def onRelease(key):
    print(key)
    global count
    count = count+1
    if count%10==0 :
        playsound('python-code/ooo.mp3')

listener = keyboard.Listener(on_release=onRelease)
listener.start()
listener.join()